package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 亲人表 relative
 *
 * @author ruoyi
 * @date 2023-10-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Relative extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 关系:1父亲，2母亲，3兄弟，4姐妹 */
    @Excel(name = "关系:1父亲，2母亲，3兄弟，4姐妹")
    private String relationship;

    /** 亲人姓名 */
    @Excel(name = "亲人姓名")
    private String name;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String workUnit;

    /** 职位 */
    @Excel(name = "职位")
    private String position;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 出生年月 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthdate;
}
